package com.umeox.moto.watch.themes.skin.entity;

import static com.umeox.moto.watch.themes.skin.entity.AttrFactory.WHEEL_VALUE_COLOR;

import android.view.View;

import com.umeox.moto.watch.themes.widget.wheel.WheelView;
import com.umeox.moto.watch.themes.skin.loader.ResourceManager;


public class WheelValueColorAttr extends SkinAttr {

    @Override
    public void apply(View view) {
        if (view instanceof WheelView) {
            if (RES_TYPE_NAME_COLOR.equals(attrValueTypeName)) {
                if (WHEEL_VALUE_COLOR.equals(attrName)) {
                    ((WheelView) view).setValueTextColor(ResourceManager.getInstance().getColor(attrValueRefId));
                }
            }
        }
    }
}
